<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js"></script>
</head>
<body>
    <ul>
        <li>发布数据</li>
        <li>定制数据</li>
        <li>定制APP</li>
        <li>交流互动</li>
    </ul>
    <script>
        /*var lis= document.getElementsByTagName('li')[0]
        lis.onclick=function(e){
            this.style.color='red';
        }
        lis.addEventListener('click',function(e){
            this.style.color='blue'
        })

        $(document).ready(function(){
            $('li').click(function(){
                $(this).css('color','green')
            })
        })
        $(document).ready(function(){
            $('li').on('click',function(){
                $(this).css('list-style','none')
            })
        })*/
        $(document).ready(function(){
            $('li').hover(function(){
                $(this).toggleClass('red')
                $(this).
            },function(){
                $(this).toggleClass('red')
                $(this).hide()
            }
            )
        })
    </script>
</body>
</html>